package la.bbs558.entity;

import java.util.Date;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serializable;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.Data;
/**
 * 用户表角色(UserPointsLog)表实体类
 *
 * @author Shanks
 * @since 2023-12-16 14:50:09
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
public class UserPointsLog extends Model<UserPointsLog> {
    
    //主键id
    private Long id;
    //用户id
    private Long userId;
    //积分
    private Integer points;
    //操作类型
    private String optType;
    //操作详情
    private String optDetail;
    //创建时间
    private Date createTime;
    //操作对象的主键，如收藏的帖子、回复的id
    private Long optId;

    //获取主键值
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

